﻿Imports DAO
Imports DTO
Imports System.Data.Linq

Public Class PhieuTraBus
    Public Shared Function LayBang() As Table(Of PhieuTraSach)
        Return PhieuTraDao.LayBang()
    End Function

    Public Shared Function LayDanhSach() As IEnumerable(Of PhieuTraSach)
        Dim lst As IEnumerable(Of PhieuTraSach)
        lst = PhieuTraDao.LayDanhSach()
        Return lst
    End Function

    Public Shared Function LayPhieuTra(ByVal mt As Integer) As PhieuTraSach
        Return PhieuTraDao.LayPhieuTra(mt)
    End Function

    Public Shared Sub Them(ByVal t As PhieuTraSach, ByVal m As PhieuMuonSach)
        PhieuTraDao.Them(t, m)
    End Sub

    'Public Shared Sub ThemChiTiet(ByVal m As PhieuTraSach, ByVal t As ChiTietMuonTra)
    '    PhieuTraDao.ThemChiTiet(m, t)
    'End Sub
End Class
